
/**
 * Circle3D is an abstract class that implements ThreeDShape.
 * Circle3D contains all the needed methods and variables for 3D
 * objects based off a circular shape.
 */
public abstract class Circle3D implements ThreeDShape {
    //instance variables
    private double radius;
    //getter methods
    public double getRadius() {
        return radius;
    }
    //setter methods
    public void setRadius(double r) {
        radius = r;
    }
    //mutator
    public double calcBase() {
        return Math.PI * radius * radius;
    }
}